fn main() {
    println!("Hello, world!");
}

fn add(a: i32, b: i32) -> i32 {
    return a + b;
}


fn panicFunc() {
    panic!("aaaaa")
}

fn panicFunc2(a: i32) {
    if a > 100 {
        panic!("bbbb_bbbb")
    } else {
        panic!("ccccc__ccc")
    }
}

#[cfg(test)]
mod test {

    use super::*;

    #[test]
    fn test_add() {
        assert_eq!(add(2, 3), 5)
    }

    #[test]
    #[should_panic]
    fn test_panic_func() {
        panicFunc();
    }

    #[test]
    #[should_panic(expected = "bbbb")]
    fn test_panic_func_2() {
        panicFunc2(200);
    }
}
